package com.example.chucuo;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {
    TextView xiaoming;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        xiaoming =findViewById(R.id.xiaoming);
        xiaoming.setTextSize(30);
        int x=0;
        for (int i=0;i<=10;i++){
            x+=1;
        }
        xiaoming.setText("数字"+x);//为什么要输入文字才能传输数字11？
    }
}